﻿@extends('layouts.shop_main')

@section('title', '地推结款——已提现详情')

@section('resources')
    @parent
    <style>
        .header{margin: 0 30px 20px 30px;padding: 10px 0;overflow: hidden;border-bottom: 1px solid #eee;}
        .header p{float: left;font-size: 18px;}
        .header a{float: right;padding: 4px 20px;border: 1px solid #9955c6;border-radius: 3px;color: #9955c6;}
        .search{margin: 0 30px;}
        .search li{overflow: hidden;margin: 20px 0;}
        .search li p{float: left;overflow: hidden;}
        .search li p span{float: left;width: 100px;text-align: right;font-size: 14px;color: #808080;line-height: 25px;padding-right: 10px;}
        .search li p input{float: left;width: 200px;height: 25px;border: 1px solid #eee;border-radius: 3px;padding: 5px;}
        .search li p select{float: left;width: 200px;height: 25px;border: 1px solid #eee;border-radius: 3px;}
        .search li table{border-top: 1px solid #DEE3EA;border-bottom: 1px solid #DEE3EA;}
        .search li table tbody tr:nth-child(2n+1){background-color: #F3F3F3;}
        .search li table td{text-align: center;font-size: 14px;padding: 10px 0;color: #808080;}
        .search li table th{text-align: center;font-size: 16px;padding: 10px 0;}
        #last_page{background-color: #9955c6;float: left;width: 100px;height: 35px;color: #fff;display: none;}
        #next_page{background-color: #9955c6;float: right;width: 100px;height: 35px;color: #fff;display: none;}
        .refresh{float: right;width: 90px;background: url({{env('IMAGE_DOMAIN')}}images/shop/bgs/refresh.png) 5px 3px no-repeat;text-align: center;font-size: 16px;color: #9955c6;}
        .order_consume{float: left;}
    </style>
@endsection

@section('content')
	<div class="content">
        <div class="header">
            <p>
                <span style="color: #808080;">地推结款</span>
                <span style="color: #808080;">></span>
                <span>详情</span>
            </p>
        </div>
        <ul class="search">
            <li>
                {{--<span class="order_consume">合计： 15条数据  地推注册数23个   地推订单实付8190.50   收入¥519.90</span>--}}
                <span class="order_consume">合计： {{$total}}条数据，地推注册数{{$registernum}}个，地推订单实付{{$orderamount}}，收入¥{{$getmoney}}</span>
                <a class="refresh" href="">刷新</a>
            </li>
            <li>
                <table style="width: 100%;" cellpadding="10">
                    <thead>
                        <tr>
                            <th>时间</th>
                            <th>类型</th>
                            <th>手机</th>
                            <th>订单号</th>
                            <th>订单金额</th>
                        </tr>
                    </thead>
                    <tbody id="order_message">
                        @foreach($lists as $list)
                            <tr>
                                <th>{{date('Y-m-d H:i:s', strtotime($list['created_at']))}}</th>
                            @if($list['type'] == 'register')
                                <th>注册</th>
                            @else
                                <th>订单</th>
                            @endif
                                <th>{{$list['mobile']}}</th>
                                <th>{{$list['ordernumber']}}</th>
                            @if($list['type'] == 'register')
                                <th></th>
                            @else
                               <th>{{$list['orderamount']}}</th>
                            @endif
                            </tr>
                        @endforeach
                    </tbody>
                </table>
                {{--<div style="margin-top: 20px;overflow: hidden;">--}}
                    <!-- <input id="last_page" type="button" name="" value="上一页">
                    <input id="next_page" type="button" name="" value="下一页"> -->
                {{--</div>--}}
            </li>
        </ul>   
    </div>
@endsection

@section('scriptResources')
    @parent
    <script>
        
    </script>
@endsection